


import React, { useEffect, useState } from "react"
import { feebbackHqApi } from "../api/api"
import { useParams } from "react-router-dom"

export default function ParkFeedBackDetails() {
   const [list, setlist] = useState<any>([])
   const { id }: any = useParams()
   console.log(id);


   const details = async () => {
      const res = await feebbackHqApi(id)
      console.log(res.data.data);

      setlist(res.data.data)
   }

   useEffect(() => {
      details()
   }, [])

   return (
      <div style={{fontSize : '16px',padding : '5px 5px'}}>
         <div style={{color : 'red' , padding : '5px 0'}}>反馈在那个地方: {list.appType}</div>
         <div style={{padding : '5px 0'}}>标题为: {list.content ? list.content : '标题为空'}</div>
         <div style={{padding : '5px 0'}}>内容: {list.title ? list.title : '内容为空'}</div>
         <div style={{padding : '5px 0' ,color : 'blue '}}>添加时间为: {list.createTime}</div>
      </div>
   )
}